<?php

return [
    // 默认磁盘
    'default' => env('filesystem.driver', 'local'),
    // 磁盘列表
    'disks'   => [
        'local'  => [
            'type' => 'local',
            'root' => app()->getRuntimePath() . 'storage',
        ],
        'public' => [
            // 磁盘类型
            'type'       => 'local',
            // 磁盘路径
            'root'       => app()->getRootPath() . 'public/storage',
            // 磁盘路径对应的外部URL路径
            'url'        => '/storage',
            // 可见性
            'visibility' => 'public',
        ],
        // 更多的磁盘配置信息
    ],
    // 阿里云oss
    'alioss' => [
        // 'access_key_id' => env('filesystem.access_key_id', 'LTAI5tBDKbPhwVSHSJjmg9t8'),
        // 'access_key_secret' => env('filesystem.access_key_secret', 'zaS4wny22vU1OtZWwwOKaRGJEpJaQf'),
        // 'role_arn' => env('filesystem.role_arn', 'acs:ram::1467637378870440:role/aliyunosstokengeneratorrole'),
        // 'role_session_name' => env('filesystem.role_session_name', 'external-username'),
        // 'duration_seconds' => env('filesystem.duration_seconds', '3600'),

        'access_key_id' => env('filesystem.access_key_id', 'LTAI5tSbnxHvj76cjbR9JjjY'),
        'access_key_secret' => env('filesystem.access_key_secret', '6yMfj3nTWNBEOAynelrzAfH9IHocHQ'),
        'role_arn' => env('filesystem.role_arn', 'acs:ram::1332491545916256:role/byn-playlet'),
        'role_session_name' => env('filesystem.role_session_name', 'byn-playlet'),
        'duration_seconds' => env('filesystem.duration_seconds', 3600),
        'bucket' => env('filesystem.bucket', 'byn-playlet'),
        'region' => env('filesystem.region', 'oss-cn-shanghai'),
        'oss_access_address' => [
            'access_acceleration_address' => 'https://byn-playlet.oss-accelerate.aliyuncs.com',
            'original_access_address' => 'https://byn-playlet.oss-cn-shanghai.aliyuncs.com',
            'cdn_accelerated_domain' => 'https://oss.sybyn.top',
        ],
    ]
];
